﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestIPCame_Embedded
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void bStart_Click(object sender, EventArgs e)
        {
            ICame1.Stop();
            ICame1.MediaUsername = "admin";
            ICame1.MediaPassword = tbPswd.Text;
            ICame1.MediaURL = @"http://" + tbIP1.Text + "/video/mjpg.cgi?profileid="+nudPofile.Value.ToString();
            ICame1.Play();
        }

        private void bStop_Click(object sender, EventArgs e)
        {
            ICame1.Stop();
        }
    }
}
